package Year2021.month10.Day21;

public class Teacher {
    public String name;
    public int age;
    public int teachingAge;
    public String sex;

    public Teacher(String name, int age, int teachingAge, String sex) {
        this.name = name;
        this.age = age;
        this.teachingAge = teachingAge;
        this.sex = sex;
    }

    public void selfIntroduce() {
        System.out.println("我的名字叫" + name + "\t" + sex + "\t" + "现在年龄" + age + "岁了" + "\t" + "有" + teachingAge + "年教龄了");
    }

    public void giveLession() {
        System.out.println("同学们上课了！");
    }


}
